package me.zhengjie.modules.detailed_subject.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import me.zhengjie.modules.detailed_subject.Entity.UserHead;
import me.zhengjie.modules.detailed_subject.mapper.UserHeadDao;
import me.zhengjie.modules.detailed_subject.service.UserHeadService;
import org.springframework.stereotype.Service;

@Service
public class UserHeadServiceImpl extends ServiceImpl<UserHeadDao, UserHead> implements UserHeadService {


    @Override
    public String getheadmethod(String username) {
        QueryWrapper wrapper=new QueryWrapper();
        wrapper.eq("username",username);
        UserHead user=baseMapper.selectOne(wrapper);
        String head=user.getAvatarPath();
        return head;
    }
}
